/*
 * @Author: sunzj
 * @Date: 2022-12-16 22:45:24
 * @LastEditTime: 2022-12-18 14:44:41
 * @FilePath: \ezvizmap\vue.config.js
 * @Description: 
 * Software:VSCode,env:
 */
module.exports = {
  chainWebpack: (config) => {
    config.plugin("html").tap((args) => {
      args[0].title = "美丽乡村大屏展示系统";
      return args;
    });
  },
  devServer: {
    host: "localhost",
    disableHostCheck: true,
    port: 80,
    proxy: {
      //配置跨域
      "/api": {
        target: "https://open.ys7.com/", //这里后台的地址模拟的;应该填写你们真实的后台接口
        changOrigin: true, //允许跨域
      },
    },
  },
  configureWebpack: {
    externals: {
      BMap: "BMap",
      BMAP_HYBRID_MAP: "BMAP_HYBRID_MAP",
      BMAP_ANIMATION_BOUNCE: "BMAP_ANIMATION_BOUNCE",
    },
  },
};

